from ..Stats import *
from ..images import aSprite
"""
Enemy Base Class
"""
class Enemy(aSprite):
    stats = Stats()
    
    aware = False #Set to true when the enemy is activly pursuing the player
    
    def AI(self):
        pass
    
    def Update(self):
        if self.iter + 1 == len(self._animations[self.currentA]):
            if self.repeating:
                self.frame = self._animations[self.currentA][0]
                self.iter = 0
            else:
                self.end()
        else:
            self.iter += 1
            self.frame = self._animations[self.currentA][self.iter]
        
        self.AI()
    
    def Attack(self, who): #Empty method to attack something (probably always going to be the player)
        pass
    
    def Defend(self, who):
        pass